package com.calm.editor.servlet;

import java.util.List;

public class Result<T> {
	public static final int STATUS_NORMAL = 0;
	public static final int STATUS_ERROR = 1;
	public static final int STATUS_WARNING = 2;
	private Integer status = STATUS_NORMAL;
	private String message;
	private List<String> events;
	private T data;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public List<String> getEvents() {
		return events;
	}

	public void setEvents(List<String> events) {
		this.events = events;
	}

}
